package com.whmskj.xjlhsc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhsc.entity.YsWbPlan;
import com.whmskj.xjlhsc.mobie.equipmentManage.entity.vo.YsWbListVo;
import com.whmskj.xjlhsc.view.entity.vo.MaintenanceTaskVo;
import com.whmskj.xjlhsc.view.entity.vo.ProcessMaintenanceNumVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;

/**
 * @author 张
 * @version 1.0
 */

@Mapper
public interface YsWbPlanMapper extends BaseMapper<YsWbPlan> {
    /**
     * 维保列表
     * @param state
     * @param type
     * @param startTime
     * @param endTime
     * @return
     */
    List<YsWbListVo> selectWbList(@Param(value = "process") String process,@Param(value = "state") Integer state,@Param(value = "type") Integer type,@Param(value = "startTime") String startTime,@Param(value = "endTime") String endTime);

    /**
     * 今日维保任务
     * @return
     */
    List<MaintenanceTaskVo> selectMaintenanceTaskToday(@Param(value = "startTime") String startTime,
                                                             @Param(value = "endTime") String endTime);

    List<ProcessMaintenanceNumVo> selectProcessMaintenanceNum(@Param(value = "startTime") String startTime,
                                                              @Param(value = "endTime") String endTime);
}
